// main.cpp
#include "TgzExtractor.h"

int main() {
    // 创建解压器实例
    TgzExtractor extractor("tar -xf");
    
    std::cout << std::endl;
    
    // 解压文件
    if (extractor.extract("validator.tgz", ".")) {
        std::cout << "Extraction completed successfully!" << std::endl;
    } else {
        std::cout << "Extraction failed!" << std::endl;
        return 1;
    }
    
    return 0;
}